LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
    hello.c

#ZOD add this for gprof
#> Profiling is enabled by means of the -pg compiler option. In this mode, the
#> compiler inserts a call to __gnu_mcount_nc into every function prologue.
#> However, no implementation of __gnu_mcount_nc is provided (to do so would be
#> impossible without knowledge of the execution environment). You must provide
#> your own implementation of __gnu_mcount_nc.
#據上面說法,目前arm-eabi-gcc沒辦法插入這個function,所有沒辦法gprof,或許弄成x86來執行可能解決
#LOCAL_CFLAGS += -pg  -g
#DEBUGFLAGS += -pg -g

#編譯好的執行檔會叫做helloworld, 並且會放在android-src/out/target/product/generic/system/bin/helloworld
LOCAL_MODULE := helloworld
include $(BUILD_EXECUTABLE)
